package com.program.cloudmanagesystem.login.service;
import com.program.cloudmanagesystem.login.domain.User;
import com.program.cloudmanagesystem.login.persistence.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service

public class UserService {
    @Autowired
    private UserMapper userMapper;
    public UserService(){}
    public User exist(String Userid){
        return userMapper.exist(Userid);
    }
    public void signup(User user){
        userMapper.addaccount(user.getUserid(),user.getPassword(),user.getName());
    }
}